/*
package mgt.service.fourA.impl;

import FrontPageEntity;
import com.iwhalecloud.mgtcenter.entity.base.FrontPageEntity;
import com.iwhalecloud.mgtcenter.service.fourA.IFourAResource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Set;

*/
/**
 * Created with IDEA
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/4/16
 * @time:10:41
 *//*

@SpringBootTest
@RunWith(SpringRunner.class)
public class FourAResourceImplTest {

    String str = "[\n" +
            "\t{\n" +
            "\t\t\"name\": \"消息中心\",\n" +
            "\t\t\"children\": [{\n" +
            "\t\t\t\"name\": \"消息管理\",\n" +
            "\t\t\t\"icon\": \"comment\",\n" +
            "\t\t\t\"children\": [{\n" +
            "\t\t\t\t\t\"name\": \"消息源管理\",\n" +
            "\t\t\t\t\t\"url\": \"messageCenter/messageManager/messageSource\"\n" +
            "\t\t\t\t},\n" +
            "\t\t\t\t{\n" +
            "\t\t\t\t\t\"name\": \"消息分发\",\n" +
            "\t\t\t\t\t\"url\": \"messageCenter/messageManager/messageSend\"\n" +
            "\t\t\t\t}\n" +
            "\t\t\t]\n" +
            "\t\t}]\n" +
            "\t}\n" +
            "]";
    @Autowired
    private IFourAResource fourAResource;

    @Test
    public void getResourceListByUserRole() {
        Set<FrontPageEntity> frontPageEntitySet =  fourAResource.getResourceListByUserRole("1");
        for (FrontPageEntity a : frontPageEntitySet){
            System.out.println(a);
        }
    }

    @Test
    public void getResourceTree() {
        Set<FrontPageEntity> frontPageEntitySet =  fourAResource.getResourceListByUserRole("1");
        fourAResource.getResourceTree(frontPageEntitySet);
    }
}*/
